package org.geektimes.configuration.microprofile.config.convert;

import org.eclipse.microprofile.config.spi.Converter;

public class StringToIntegerConverter implements Converter<Integer> {

    @Override
    public Integer convert(String value) throws IllegalArgumentException, NullPointerException {
        return Integer.valueOf(value);
    }

    public static void main(String[] args) {
        StringToIntegerConverter converter = new StringToIntegerConverter();

        System.out.println(converter.convert("HDJ"));
    }
}
